﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using XFABManager;

namespace XFGameFramework.HybridCLR
{
    public class ModuleManagerHybrid 
    {
        /// <summary>
        /// 启动模块并加载热更程序集
        /// </summary>
        /// <param name="projectName">热更程序集所在的资源模块名称</param>
        /// <param name="moduleTypeFullName">模块类的名称(含命名空间)</param>
        /// <returns></returns>
        public static StartUpModuleRequestHybrid StartUpModule(string projectName,string moduleTypeFullName)
        {
            StartUpModuleRequestHybrid request = new StartUpModuleRequestHybrid(); 
            CoroutineStarter.Start(request.StartUpHybrid(projectName, moduleTypeFullName));
            return request;
        }
        
    }
}

